package org.wkg.lesson01;

public class Demo07 {

    public static void main(String[] args) {

        Thread thread = new Thread(() -> {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("通过Thread匿名内部类的方式创建线程...");
        });
        thread.start();
    }
}
